<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<html>
<head>
<title>Login Page</title>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% String baseURL = request.getRequestURL().toString().replace(request.getRequestURI().substring(1), request.getContextPath()); %>
</head>


<body>
 

	<table width="100%">
		<tr>
			<td width="100%" align="center" height="50"></td>
		</tr>
		<tr>
			<td width="100%" align="center"><img name="logo" src="<% out.print(baseURL);%>/view/earogya_logo.jpg" width="250" height="250" alt="earogya logo" />
			</td>
		</tr>
		<tr>
			<td width="100%" align="center">
				<form action="j_spring_security_check" method="post">
				<table>
				<tr>
				<td>
					<label for="j_username">Username:</label></td> <td><input id="j_username"
						name="j_username" size="20" maxlength="50" type="text" /> <br />
</td>
</tr>
<tr>
					<td><label for="j_password">Password:</label> </td><td><input id="j_password"
						name="j_password" size="20" maxlength="50" type="password" /> <br />
						</td>
</tr>
<tr>
<td>
<input id="_spring_security_remember_me"
						name="_spring_security_remember_me" type="checkbox" value="true" />
						</td>
						<td>
					<label for="_spring_security_remember_me">Remember Me?</label> <br />
	</td>
	</tr>	
	<tr>	<td>		
					<input type="submit" value="Login" style="green"/> </td></tr>
					<tr>
					<td><c:if test="${param.error == true}">
       
Error: Invalid username/password.
   
</c:if> </td></tr>
					</table>
				</form></td>
				
		</tr>
	</table>
</body>
</html>
